<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
<!--顶部导航栏,利用th:fragment提取出来,命名为topbar-->
<!--<nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0" th:fragment="topbar">-->
<!--    <a class="navbar-brand col-sm-3 col-md-2 mr-0">云盘</a>-->
<!--    <a class="navbar-brand col-sm-3 col-md-2 mr-1" href="../main.html">我的文件</a>-->
<!--    <input class="form-control form-control-dark w-100" type="text"  name="fileName" placeholder="Search" aria-label="查找">-->
<!--    <ul class="navbar-nav px-3">-->
<!--        <li class="nav-item text-nowrap">-->
<!--            <a class="nav-link" th:href="@{/user/logout}">退出</a>-->
<!--        </li>-->
<!--    </ul>-->
<!--</nav>-->
<body>
<div th:fragment="topbar">
    <ul id="app" class="layui-nav layui-bg-cyan" >
        <li class="layui-nav-item">云盘</li>
        <li class="layui-nav-item"><a href="../main.html">我的主页</a></li>
        <li class="layui-nav-item">
            <a>{{userInfo.userName}}</a>
            <dl class="layui-nav-child">
                <dd><a th:href="@{/user/toUpdateUser}">修改个人信息</a></dd>
                <dd><a th:href="@{/user/logout}">退出</a></dd>
            </dl>
        </li>
        <li class="layui-inline " style="float: right;margin-right: 50px;margin-top: 10px">
                <form th:action="@{/file/queryFileNew}">
                    <input type="text" name="fileLink" required lay-verify="required" placeholder="请输入文件名称"  autocomplete="off" class="layui-input">
                    <button type="submit" name="submit"class="layui-btn">搜索</button>
                </form>
        </li>

    </ul>
</div>
<!--侧边栏,利用th:fragment提取出来,命名为sidebar-->
<nav class="col-md-1 d-md-block sidebar" th:fragment="siderbar">
    <div class="sidebar-sticky">
        <ul class="nav flex-column">
            <li class="nav-item">
                <a href="../photo.html">
                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
                         fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                         stroke-linejoin="round" class="feather feather-home">
                        <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
                        <polyline points="9 22 9 12 15 12 15 22"></polyline>
                    </svg>
                    图片 <span class="sr-only"></span>
                </a>
            </li>
            <li class="nav-item">
                <a href="../txt.html">
                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
                         fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                         stroke-linejoin="round" class="feather feather-file">
                        <path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path>
                        <polyline points="13 2 13 9 20 9"></polyline>
                    </svg>
                    文档
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link">
                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
                         fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                         stroke-linejoin="round" class="feather feather-file">
                        <path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path>
                        <polyline points="13 2 13 9 20 9"></polyline>
                    </svg>
                    音频
                </a>
            </li>
        </ul>
    </div>
</nav>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.js"></script>
<script th:src="@{/layui/layui.js}" charset="utf-8"></script>
<script th:src="@{/js/commons.js}" charset="utf-8"></script>
</body>
</html>







